'''
Created on Mar 21, 2013

@author: Jason
'''
from SimPy.Simulation import *
from Server import Server
from Users import Users
from Packet import Packet
from VoicePacket import VoicePacket

def main():
    initialize()
    myServer = Server()
    activate(myServer, myServer.Run())
    myUsers = Users()
    activate(myUsers, myUsers.Run())
    MaxSimTime = float(100)
    simulate(until=MaxSimTime)
    print Packet.TotalPackets
    print 'total voice packets: ' 
    print VoicePacket.TotalVoicePackets
    print 'done'

if __name__ == '__main__': main()